package com.nian.trancation.tc.b.controller;

import com.nian.trancation.tc.b.model.TableTestB;
import com.nian.trancation.tc.b.service.TableTestBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/15 0015 12:30
 */
@RestController
@RequestMapping("lcn/b")
public class TableTestBController {

    @Autowired
    private TableTestBService tableTestBService;

    @PostMapping("save")
    public TableTestB save(@RequestBody TableTestB model){
        return tableTestBService.save(model);
    }

    @PostMapping("delete")
    public void delete(@RequestBody TableTestB model){
        tableTestBService.delete(model);
    }
}
